import java.util.Arrays;



/**
 * 本.java文件未改完
 */
public class Test3 {
    public static void main(String[] args) {

        int[] nums = new int[]{1,4,5,6,7,8,9};

        ////Solution2 solution = new Solution2();
        ////solution.rotate(nums,6);
        //System.out.println(nums);

        int[] testtt=new int[]{1,2,3,4,5,6,7,8,9};
        String str = Arrays.toString(testtt);
        System.out.println(str);

        String str2 = "abcdef";
        System.out.println(str2);
        //System.out.println(str);这里打印出来的为什么会是地址？？？！！！

        //testtt = Integer.parseInt(str);

        //int testtt1 =Integer.valueOf(str);
        String strs[] = (str.split("4",2));
        str2 = strs[1];
        String  str3 = strs[0];
        String str4 = strs[1]+strs[0];
        System.out.println(str4);
        System.out.println();
    }
}


class Solution3 {
    public void rotate(int[] nums, int k) {

        int n = nums.length;
        k = k % n;
        for (int i = 0; i < k; i++) {

            int num = nums[n - 1];
            for ( int j = n-1; j >0; j--) {

                nums[j] = nums[j-1];//不能在这里写成：j--或者--j
            }
            nums[0]=num;

        }
        for (int i = 0; i < n; i++) {

            System.out.println(nums[i]);

        }

    }
}
//

